package com.example.test2.main.fragment;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.example.test2.R;
import com.example.test2.databinding.FragmentSellerBinding;
import com.example.test2.event.RoleEvent;

import org.greenrobot.eventbus.EventBus;

// TODO: 2024/5/259卖家首页
public class SellerFragment extends BaseFragment<FragmentSellerBinding> {

    protected void initData() {
        super.initData();
        getBinding().tvSell.setOnClickListener(view -> {
            EventBus.getDefault().post(new RoleEvent(true));
        });
    }

    @Override
    protected int initLayout() {
        return R.layout.fragment_seller;
    }

    @Override
    protected FragmentSellerBinding onCreateViewBinding(@NonNull LayoutInflater inflater, @Nullable ViewGroup parent) {
        return FragmentSellerBinding.inflate(inflater, parent, false);
    }


}